package lib.quasar.pedometer;

import android.app.job.JobParameters;
import android.app.job.JobService;
import android.content.Intent;
import android.os.Build;
import android.support.annotation.RequiresApi;

/**
 * description: 当前类描述信息
 * created by kalu on 2018/4/3 14:22
 */
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public final class PedometerJobService extends JobService {

    private static final String TAG = "PedometerJobService";

    @Override
    public boolean onStartJob(JobParameters params) {
        Intent intent = new Intent(getApplication(), PedometerService.class);
        getApplication().startService(intent);

       // LogUtil.e(TAG, "onStartJob");
        return false;
    }

    @Override
    public boolean onStopJob(JobParameters params) {
        return false;
    }
}
